Side navigation
Ticket #3159: remove[5788].diff
File remove[5788].diff, 0.5 KB (added by flesler, July 15, 2008 03:55PM UTC)
This is the patch
Index: src/core.js
===================================================================
--- src/core.js (revision 5788)
+++ src/core.js (working copy)
@@ -1309,7 +1309,7 @@
remove: function( selector ) {
if ( !selector || jQuery.filter( selector, [ this ] ).r.length ) {
// Prevent memory leaks
- jQuery( "*", this ).add(this).each(function(){
+ jQuery( "*", this ).add([this]).each(function(){
jQuery.event.remove(this);
jQuery.removeData(this);
});
Download in other formats:
Original Format
File remove[5788].diff, 0.5 KB (added by flesler, July 15, 2008 03:55PM UTC)
This is the patch
Index: src/core.js
===================================================================
--- src/core.js (revision 5788)
+++ src/core.js (working copy)
@@ -1309,7 +1309,7 @@
remove: function( selector ) {
if ( !selector || jQuery.filter( selector, [ this ] ).r.length ) {
// Prevent memory leaks
- jQuery( "*", this ).add(this).each(function(){
+ jQuery( "*", this ).add([this]).each(function(){
jQuery.event.remove(this);
jQuery.removeData(this);
});